<?php
$password = array(
	'name'	=> 'password',
	'id'	=> 'password',
	'size'	=> 30,
	'value' => ''
);

$confirm_password = array(
	'name'	=> 'confirm_password',
	'id'	=> 'confirm_password',
	'size'	=> 30,
	'value' => ''
);

$captcha = array(
	'name'	=> 'captcha',
	'id'	=> 'captcha'
);
?>
		        <div id="settings"> 
		            <form method="POST" action="<?php echo site_url('reg/register'); ?>"> 
		            	<dl>
							<dt><h4>邮箱地址</h4>
							<dd>
								<h4><?php echo $email; ?></h4>
							</dd>
						
							<dt><h4><?php echo form_label('密码', $password['id']);?></h4></dt>
							<dd>
								<?php echo form_password($password)?>
						    <div class="signUpErr"><?php echo $reg3?'':form_error($password['name']); ?></div>
							</dd>
						
							<dt><h4><?php echo form_label('确认密码', $confirm_password['id']);?></h4></dt>
							<dd>
								<?php echo form_password($confirm_password);?>
								<div class="signUpErr"><?php echo $reg3?'':form_error($confirm_password['name']); ?></div>
							</dd>
								
						<?php if ($this->dx_auth->captcha_registration): ?>
						
							<dt><h4>请输入验证码</h4></dt>
							<dd class="refreshCode">
                <?php echo $this->dx_auth->get_captcha_image(); ?>
                <a href="#this" id="refreshCode">刷新</a>
              </dd>
						
							<dt></dt>
							<dd>
								<?php echo form_input($captcha);?>
								<div class="signUpErr"><?php echo $reg3?'':form_error($captcha['name']); ?></div>
							</dd>
							
						<?php endif; ?>
						</dl>
						<input type="hidden"  name="email" value="<?php echo $email; ?>" />
						<input type="hidden"  name="city" value="<?php echo $city; ?>" />
						<?php if(is_array($tag)){
								foreach ($tag as $item){	
						?>
						<input type="hidden"  name="tag[]" value="<?php echo $item; ?>" />
						<?php
								}
							}
						?>
						<?php if(is_array($site)){
								foreach ($site as $item){	
						?>
						<input type="hidden"  name="site[]" value="<?php echo $item; ?>" />
						<?php
								}
							}
						?>
		                <input type="submit" class="formbutton" value="提交" />
		            </form> 
		        </div><!-- end #settings --> 